package com.bosssoft.g4.mapper;

import com.bosssoft.g4.dto.ResourceDTO;
import com.bosssoft.g4.entity.Resource;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Baiye959
 */
@Mapper
public interface ResourceMapper {
    /**
     * 查询资源列表
     */
    List<ResourceDTO> selectResourceList(Resource resource);
    /**
     * 根据ID查询资源
     */
    ResourceDTO selectResourceById(Long id);
    /**
     * 新增资源
     */
    Long insertResource(Resource resource);
    /**
     * 更新资源
     */
    Boolean updateResource(Resource resource);
    /**
     * 删除资源
     */
    Boolean deleteResourceById(Long id);

    List<ResourceDTO> selectResourceListBySubSystemId(Long subSystemId);

    Boolean deleteResourceByIdList(List<Long> idList);
}
